<g:if test="${set}">
    <div class="browser">
        <form action="">
            <ul class="pages">
                <g:each in="${(set.pageFirst..set.pageLast)}" var="page">
                    <li class="page ${(set.pageCurrent.equals(page)?'active':'')}">
                        %{--<a href="${createLink(controller: 'photo', action:'findAll', absolute:true, params:[text:set.params?.text,page:page])}">${page}</a>--}%
                        <a href="${createLink(controller: 'photo', action:'findAll', absolute:true, params:[text:set.params?.text,page:page])}">${page}</a>
                    </li>
                </g:each>
            </ul>

            %{--<label for="text">text</label><input id="text" value="${set.params.text}" />--}%
            %{--<label for="per_page">per_page</label><input id="per_page" value="${set.params.per_page}" />--}%
            %{--<label for="page">page</label><input id="page" value="${set.params.page}" />--}%
        </form>
    </div>
</g:if>
